package com.turtle.security.organizates.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 系统菜单
 *
 * @author turtle
 * date: 2020-05-29
 */
@Data
@Builder
public class SysMenuDTO {

    @ApiModelProperty(value = "菜单ID")
    private Long menuId;

    @ApiModelProperty(value = "菜单名称")
    @NotBlank(message = "菜单名称不能为空")
    private String menuName;

    @ApiModelProperty(value = "父菜单ID")
    private Long parentId;

    @ApiModelProperty(value = "显示顺序")
    private Integer orderNum;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "是否为外链（0是 1否）")
    private Integer isFrame;

    @ApiModelProperty(value = "场景类型（S系统菜单，G通用菜单，A应用菜单）")
    @NotBlank(message = "场景类型不能为空")
    private String menuCategory;

    @ApiModelProperty(value = "菜单类型（M目录 C菜单 F按钮）")
    @NotBlank(message = "菜单类型不能为空")
    private String menuType;

    @ApiModelProperty(value = "是否显示（0显示 1隐藏）")
    @NotBlank(message = "是否显示不能为空")
    private String visible;

    @ApiModelProperty(value = "菜单状态（0正常 1停用）")
    @NotBlank(message = "菜单状态不能为空")
    private String status;

    @ApiModelProperty(value = "权限标识")
    private String perms;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "备注")
    private String remark;

}
